// console.table({环境:process.env.NODE_ENV,请求地址: process.env.BASE_URL});

module.exports = {
  lintOnSave: true, //是否保存时 lint 代码
  productionSourceMap: true, //生产环境的source map
  productionSourceMap: false, //去除build后的.map文件
  devServer: {
    port: 8088,
    host: '127.0.0.1',
    open: true
  },
  configureWebpack: config => {
    let newAlias = {
      '@assets': '@/assets',
      '@imgs': '@/assets/imgs',
      '@componentsMine': '@/componentsMine',
      '@pages': '@/pages',
      '@store': '@/store',
      '@utils': '@/utils'
    }
    Object.assign(config.resolve.alias, newAlias) //添加快捷键
  },
  // chainWebpack: config => {
  //   // config.resolve.symlinks(true); //实现热更新
  // },
  transpileDependencies: ['@dcloudio/uni-ui']
}
